package com.ndood.spider.sample.pipeline;

import org.springframework.stereotype.Component;

import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.Pipeline;

/**
 * 默认结果处理器
 */
@Component
public class SamplePipeline  implements Pipeline {

	@Override
	public void process(ResultItems resultItems, Task task) {
		System.out.println(resultItems.get("test").toString());
	}

}